/*
 * @Author: Jone XIn
 * @Date: 2022-01-24 21:08:33
 * @LastEditTime: 2022-01-24 21:08:33
 * @Description: 
 */
export default {
    type: "force",
    preventOverlap: true,
    linkDistance: (d) => {
        if (d.source.id === "node0") {
            return 100;
        }
        return 30;
    },
    nodeStrength: (d) => {
        if (d.isLeaf) {
            return -50;
        }
        return -10;
    },
    edgeStrength: (d) => {
        if (
            d.source.id === "node1" ||
            d.source.id === "node2" ||
            d.source.id === "node3"
        ) {
            return 0;
        }
        return 0.01;
    },
}